package com.example.aaa;

import java.util.concurrent.TimeUnit;

public class Event {
	public final String title;
	public final boolean isAllDay;
	public final long numberOfDays;
	
	public Event(String title, boolean isAllDay, long startTime, long endTime) {
		this.title = title;
		this.isAllDay = isAllDay;
		this.numberOfDays = TimeUnit.DAYS.convert(endTime - startTime, TimeUnit.MILLISECONDS);
	}
}